package edu.nctu.csie.jichang.database.model.cell;


public class DBDatabase extends AbstractContainer<DBSchema>{

	public DBDatabase(){
	}
	
	public DBDatabase(String pName){
		super(pName);
	}
	
	public String getDatabaseName(){
		return getName();
	}
	public void setDatabaseName(String pName){
		setName(pName);
	}
	public void addSchema(String pKey,DBSchema pSchema){
		addChild(pKey, pSchema);
	}
	public DBSchema[] getAllSchema(){
		return getChildren().values().toArray(new DBSchema[0]);
	}
	public DBSchema getSchema(String pSchema){
		return (DBSchema)getChild(pSchema);
	}
	public String[] getSchemaNames(){
		return getAllNames();
	}
	public boolean hasSchema(String pName){
		return hasChild(pName);
	}
}
